package com.demo.common.mq;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 消息发送service,装饰者模式
 */
@Service
public class MessageSendTemplate {

    @Resource
    private MQTemplate mqTemplate;

    public boolean sendMsg(String queue,String msg){
        return mqTemplate.sendMsg(queue, msg);
    }
}
